package wechat.handler.request.menu.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alibaba.fastjson.JSON;

import wechat.handler.bean.request.menu.MenuBean;
import wechat.handler.request.base.BaseMenu;
import wechat.handler.request.menu.IMenu;

public class Menu extends BaseMenu implements IMenu {
	private Logger log = LoggerFactory.getLogger(Menu.class);
	
	public boolean createMenu(MenuBean menuBean) throws Exception {
		String jsonString = JSON.toJSONString(menuBean);
		
		log.info("Menu--createMenu  jsonString=" + jsonString);
		
		return super.createMenu(jsonString);
	}
	
	public boolean createMenu(String appid,MenuBean menuBean) throws Exception {
		String jsonString = JSON.toJSONString(menuBean);
		
		log.info("Menu--createMenu appid=" + appid + " jsonString=" + jsonString);
		
		return super.createMenu(appid,jsonString);
	}
}
